package com.pearl.jacksoncore.demo.pojo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonKey;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author TD
 * @version 1.0
 * @date 2024/3/18
 */
//@JsonIgnoreType
//@JsonIgnoreProperties({"orgName","id"})
public class Org {
    // 机构ID
    private Long id;
    // 机构名称
    //@JsonKey
    private String orgName;
    // 机构地址
    private String address;
    // 省略 getter\setter..........

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "Org{" +
                "id=" + id +
                ", orgName='" + orgName + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
}
